// 关闭AJAX相应的缓存
$.ajaxSetup({
			cache:false
		});
/*
 * 桌面右下角弹出提示 title:title msg:msg time:毫秒 type:(show,slid,fade)
 * 
 */
function sys_show(title, msg, time, type) {
	$.messager.show({
				title : title,
				msg : msg,
				timeout : time,
				showType : type
			});
}
/*
 * 提示框 title:title msg:msg type:(null,error,info,question,warning)
 * 
 */
function sys_alert(title, msg, type) {
	$.messager.alert(title, msg, type);
}

/*
 * 交互框 title:title msg:msg
 * 
 * 
 */
function sys_confirm(title, msg) {
	$.messager.confirm(title, msg, function(r) {
				if (r) {
					alert('confirmed:' + r);
					// location.href = 'http://www.google.com';
				}
			});
}
function sys_prompt(title, msg) {
	$.messager.prompt(title, msg, function(r) {
				if (r) {
					alert('you type:' + r);
				}
			});
}
//全局变量
var datenow = new Date();
var yyyy =datenow.getFullYear();
var mm = datenow.getMonth() + 1;
var dd =datenow.getDate();
var h24 = datenow.getHours();
var MM = datenow.getMinutes();
var ss = datenow.getSeconds();
var auto_tuition_id = yyyy+""+mm+""+dd+""+h24+""+MM+""+ss;
var auto_tuition_time = yyyy+"-"+mm+"-"+dd+" "+h24+":"+MM+":"+ss;
//当前系统时间
var atuto_now_time = auto_tuition_time;
//当前用户
var realName='<%=session.getAttribute("realName")%>';
var userId = '<%=session.getAttribute("userId")%>';
